/****************************************************************************
**
****************************************************************************/

#include <QReadWriteLock>
#include <QSerialPort>

#include "abstractCard.h"

AbstractCard::AbstractCard(QObject *parent) : QObject(parent)
{

}

AbstractCard::~AbstractCard()
{
    if (nullptr == serialport_) {
        return;
    }

    serialport_->close();
    delete serialport_;
    serialport_ = nullptr;
}
